//
// Created by sqp on 2022/2/28.
//

#ifndef SEARCHSERVER_H
#define SEARCHSERVER_H

#include "fileinfo.h"

class SearchServer
{
public:
    SearchServer();

    ~SearchServer();

    int init();

    void search(QMap<QString, FileInfo> &resultMap, const QString &keyword);

    void setSearchDbPath(const QString &path);

    int createIndex();

private:
    QString m_searchDbPath = "";
};

#endif // SEARCHSERVER_H
